<!doctype HTML public "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- Click to Convert 5.2: Anything to HTML -->
<!-- http://www.clicktoconvert.com -->

<html>
<head>
<title>gravityboxscheduleuserguide - page 35 of 234</title>
<meta http-equiv=content-type content=text/html;charset=iso-8859-1>
<meta name="Generator" content="Click to Convert">

<!--Start of page styles-->
<STYLE TYPE="text/css">
<!--
 /* Foreground Image Styles */
 .style35p198{position:absolute;left:232px;top:440px}

 /* Position Styles */
 .ts35p0{position:absolute;left:106px;top:97px;}
 .ts35p1{position:absolute;left:352px;top:97px;}
 .ts35p3{position:absolute;left:672px;top:97px;}
 .ts35p7{position:absolute;left:106px;top:113px;}
 .ts35p8{position:absolute;left:706px;top:1026px;}
 .ts35p9{position:absolute;left:331px;top:1044px;}
 .ts35p13{position:absolute;left:106px;top:146px;}
 .ts35p15{position:absolute;left:106px;top:220px;}
 .ts35p17{position:absolute;left:106px;top:256px;}
 .ts35p19{position:absolute;left:106px;top:275px;}
 .ts35p20{position:absolute;left:106px;top:293px;}
 .ts35p21{position:absolute;left:106px;top:312px;}
 .ts35p23{position:absolute;left:106px;top:330px;}
 .ts35p24{position:absolute;left:106px;top:348px;}
 .ts35p25{position:absolute;left:106px;top:367px;}
 .ts35p27{position:absolute;left:106px;top:385px;}
 .ts35p29{position:absolute;left:106px;top:404px;}
 .ts35p30{position:absolute;left:380px;top:421px;}
 .ts35p32{position:absolute;left:604px;top:755px;}
 .ts35p33{position:absolute;left:106px;top:771px;}
 .ts35p34{position:absolute;left:106px;top:789px;}
 .ts35p35{position:absolute;left:106px;top:808px;}
 .ts35p36{position:absolute;left:106px;top:826px;}
 .ts35p38{position:absolute;left:106px;top:844px;}
 .ts35p41{position:absolute;left:106px;top:863px;}
 .ts35p44{position:absolute;left:106px;top:881px;}
 .ts35p46{position:absolute;left:106px;top:900px;}
 .ts35p47{position:absolute;left:106px;top:918px;}
 .ts35p48{position:absolute;left:106px;top:936px;}
 .ts35p50{position:absolute;left:106px;top:955px;}
 .ts35p52{position:absolute;left:106px;top:973px;}

 /* Font Styles */
 .ft0p35{font-style:normal;font-weight:bold;font-size:13px;font-family:arial,sans-serif;color:#000000;}
 .ft1p35{font-weight:normal;}
 .ft2p35{font-style:normal;font-weight:normal;font-size:13px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft3p35{font-style:normal;font-weight:normal;font-size:16px;font-family:"times new roman","times new roman",times,serif;color:#000000;}
 .ft4p35{font-style:normal;font-weight:bold;font-size:11px;font-family:arial,sans-serif;color:#000000;}
 .ft5p35{font-style:normal;font-weight:normal;font-size:32px;font-family:helvetica,arial,sans-serif;color:#000000;}
 .ft6p35{font-style:normal;font-weight:bold;font-size:21px;font-family:arial,sans-serif;color:#808080;}
 .ft7p35{font-style:normal;font-weight:normal;font-size:16px;font-family:arial,sans-serif;color:#000000;}
 .ft8p35{font-style:normal;font-weight:bold;font-size:16px;font-family:helvetica,arial,sans-serif;color:#000000;}

 /* Background Style */
 .styleBackground35{position:absolute;left:105px;top:1030px}

 /* Navigation Styles */
 .styleNavBarTop{position:absolute;left:0px;top:2px}
 .nb{position:absolute;left:2px;top:0px}
 .nbs{position:absolute;left:0px;top:0px}
 .nbe{position:absolute;left:836px;top:0px}
 .styleNavBarBot{position:absolute;left:0px;top:1117px}
-->
</STYLE>
<!--End of page styles-->

</head>
<body bgcolor="#ffffff" text="#000000" link="#0000FF" Vlink="#660099">

<table id="pageTable" width="836" STYLE="position: relative; left: auto; top: auto;"><tr><td>
<div class=nbs><img src="./navbarstart.gif" width="2" height="30"></div>
<div class=nb><img src="./navbar.gif" width="836" height="30" alt="Navigation bar"></div>
<div class=nbe><img src="./navbarend.gif" width="2" height="30"></div>
<div class=styleNavBarTop>
<table width="834" height="26" border="0" cellspacing="0">
  <tr align="left">
    <td width="4">&nbsp;</td>
    <td width="25" align="center"><a href="http://www.gravitybox.com" target="_parent"><img src="./home.gif" border="0" alt="Home"></a></td>
    <td width="25" align="center"><a href="#" onClick="window.open('./print.html','Printing','width=300,height=100,toolbar=no,directories=no');return false;"><img src="./print.gif" border="0" alt="Print document"></a></td>
    <td width="10" align="center"><img src="./separator.gif" border="0"></td>
    <td width="18" align="center"><a href="./index1.html"><img src="./start.gif" width="18" height="14" border="0" alt="Start"></a></td>
    <td width="18" align="center"><a href="./index34.html"><img src="./back.gif" width="14" height="14" border="0" alt="Previous page"></a></td>
    <td width="80" valign="middle"><table width="100%" height="16" border="0" cellspacing="1" bgcolor="#ACA899"><tr><td align="center" bgcolor="#ffffff"><font face=verdana,arial,sans-serif><font size="1">&nbsp;35 of 234&nbsp;</font></font></td></tr></table></td>
    <td width="18" align="center"><a href="./index36.html"><img src="./forward.gif" width="14" height="14" border="0" alt="Next page"></a></td>
    <td width="18" align="center"><a href="./index234.html"><img src="./end.gif" width="18" height="14" border="0" alt="End"></a></td>
    <td width="620">&nbsp;</td>
  </tr>
</table>
<p>
</div>
<nobr>
<div class=styleBackground35><img src="./background35.png" width="625" height="25" border="0" alt=""></div>
<div class=style35p198><img src="./image35_198.png" width="372" height="330" border="0" alt=""></DIV>
<div class=ts35p0><span class="ft0p35"> </span></div>
<div class=ts35p1><span class="ft0p35">Gravitybox Schedule Primer<span class="ft1p35"> </span></span></div>
<div class=ts35p3><span class="ft0p35">Page 33&nbsp; </span></div>
<div class=ts35p7><span class="ft2p35"> </span></div>
<div class=ts35p8><span class="ft3p35"> </span></div>
<div class=ts35p9><span class="ft4p35">1998&#45;2004 Gravitybox Software LLC<span class="ft3p35"> </span></span></div>
<div class=ts35p13><span class="ft5p35">Chapter 2 </span></div>
<div class=ts35p15><span class="ft6p35">Creating your first Scheduling Application </span></div>
<div class=ts35p17><span class="ft7p35">So now that you are familiar with the object model we can begin to construct our first </span></div>
<div class=ts35p19><span class="ft7p35">scheduling application. It is easy to create a program that actually has schedule </span></div>
<div class=ts35p20><span class="ft7p35">functionality with no code! If there is no underlying code, you will not be able to load or </span></div>
<div class=ts35p21><span class="ft7p35">save schedules. However I state this merely to display the ease of use. We begin by </span></div>
<div class=ts35p23><span class="ft7p35">opening Visual Basic and creating and new project. Next we need to add the software </span></div>
<div class=ts35p24><span class="ft7p35">component to the project. On the Project menu choose &#147;Components&#133;&#148;. This will </span></div>
<div class=ts35p25><span class="ft7p35">display the add component screen. Use this to add the &#147;Gravitybox Schedule&#148; </span></div>
<div class=ts35p27><span class="ft7p35">component. </span></div>
<div class=ts35p29><span class="ft7p35"> </span></div>
<div class=ts35p30><span class="ft8p35">Figure 2.1 </span></div>
<div class=ts35p32><span class="ft7p35"> </span></div>
<div class=ts35p33><span class="ft7p35"> </span></div>
<div class=ts35p34><span class="ft7p35">Figure 2.1 shows the Component screen with the schedule added. Press the &#147;OK&#148; </span></div>
<div class=ts35p35><span class="ft7p35">button and we are ready to start scheduling. When the schedule is added to a form it is </span></div>
<div class=ts35p36><span class="ft7p35">displayed with times on the left opposing days and rooms on the top. This is a very </span></div>
<div class=ts35p38><span class="ft7p35">common configuration of a schedule. At design&#45;time there are two rooms for each day </span></div>
<div class=ts35p41><span class="ft7p35">to display the day&#45;room configuration functionality. As described in Chapter 1 there </span></div>
<div class=ts35p44><span class="ft7p35">many different modes in which the schedule may be displayed. If your application does </span></div>
<div class=ts35p46><span class="ft7p35">not require rooms (or objects), this feature may be removed by changing the schedule&#146;s </span></div>
<div class=ts35p47><span class="ft7p35">Viewmode property to one of the &#147;day only&#148; settings. This will display only dates and no </span></div>
<div class=ts35p48><span class="ft7p35">rooms. Just to keep things simple in our first program, we are going to turn off the Room </span></div>
<div class=ts35p50><span class="ft7p35">interface. </span></div>
<div class=ts35p52><span class="ft7p35"> </span></div>
<div class=styleNavBarBot>
<table width="836" border="0" cellspacing="2">
  <tr></tr>
  <tr>
    <td width="118"><a href="http://www.purepage.com"><img src="./smalllogo.gif" width="118" height="46" border="0" alt="http://www.purepage.com"></a></td>
    <td></td>
  </tr>
</table>
</div>

</td></tr></table>

</body>
</html>
